﻿using MvcContrib.PortableAreas;

namespace nanoCMS.Store.WebUI {
    public class StoreRegistration : PortableAreaRegistration {
        public override string AreaName
        {
            get { return "Store"; }
        }

        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus) {
            bus.Send(new PortableAreaStartupMessage(AreaName));

            context.MapRoute("StoreDefault", "Store/{controller}/{action}", new { controller = "", action = "" });
            base.RegisterArea(context, bus);
        }
    }
}
